package com.example.webwork.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Date;


@Data
@TableName("employee")
public class Employee {
    @TableId(type = IdType.AUTO)
   private Long id;
   private String name;
   private int gender;
   private String phone;
   private String email;
   private Date birthDate;
   private Date hireDate;
   private Long managerId;
   private String position;
   private int status;
   private Date gmtCreated;
   private Date gmtModify;

}
// id BIGINT NOT NULL,
//    name CHAR(20) NOT NULL,
//    gender TINYINT NOT NULL,
//    phone VARCHAR(64) NOT NULL,
//    email VARCHAR(255) NOT NULL,
//    birth_date DATE NOT NULL,
//    hire_date DATE NOT NULL,
//    manager_id BIGINT NOT NULL,
//    position VARCHAR(255) NOT NULL,
//    status TINYINT NOT NULL,
//    gmt_created DATETIME NOT NULL,
//    gmt_modify DATETIME NOT NULL,
//    PRIMARY KEY (id)